package com.antony.message0928;

import java.io.IOException;
import java.io.OutputStream;

public class Message {
	private String msg;
	private OutputStream out;
	private String name;
	private boolean isNewPut = true;
	private boolean isNewJoin = true;

	public Message(OutputStream out) {
		this.out = out;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	public String getName(){
		return name;
	}

	public Message() {
		msg = new String();
	}

	public void addMsg(String msg) {
		this.msg = msg;
		isNewPut = true;
	}

	public String getMsg() {
		return msg;
	}

	public void setIsNewPut(boolean s) {
		isNewPut = s;
	}

	public boolean getIsNewPut() {
		return isNewPut;
	}
	
	public void setIsNewJoin(boolean j) {
		isNewJoin = j;
	}

	public boolean getIsNewJoin() {
		return isNewJoin;
	}
}
